import { post, get } from "utils/fetch";

// 获取流程列表数据
export const getListData = (params) => {
  return post("/flow-platform/model/deployment/list", params, {
    messageType: "close",
  });
};

// 启动流程
export const processStart = (data) =>
  post(`/flow-platform/process/start`, data, { messageType: "close" });

// 获取流程申请表单
export const getForm = (data) =>
  get(`/flow-platform/process/start`, data, { messageType: "close" });

// 获取外置表单信息
export const startWithExternalForm = (params) => {
  return get("/flow-platform/form/externalFormInfo", params, { messageType: "close" });
};

// 判断内置外置表单
export const isExternalForm = (params) => {
  return post("/flow-platform/form/isExternalForm", params, { messageType: "close" });
};